package com.cmo.common.controller.rltDoctor2queueType;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.cmo.common.model.RltDoctor2queueType;
import com.jfinal.core.Controller;
import com.jfinal.plugin.activerecord.Record;

public class RltDoctor2queueTypeController extends Controller {
	
	RltDoctor2queueType service=new RltDoctor2queueType();
	
	public void listRltDoctor2queueType(){
		Map<String, Object> map=new HashMap<String, Object>();
		List<Record> list=service.listRltDoctor2queueType();
		if(null==list){
			map.put("renturn_msg", "查询排班信息失败");
			map.put("return_code", "fail");
			renderJson(map);
			return;
		}else{
			map.put("return_msg", "查询排班信息成功");
			map.put("return_code", "success");
			map.put("list", list);
			renderJson(map);
		}
		renderJson(map);
	}
}
